<template>
  <div class="product">
    <div class="title">产品展示</div>
    <p class="sub-title">科技创新　品质保证　量身为您定制</p>
    <p class="sub-title2">
      <span>TECHNOLOGICAL INNOVATION</span>
      <span>QUALITY ASSURANCE </span>
      <span>PRODUCT CUSTOMIZATION</span>
    </p>
    <ul class="navigation">
      <li style="z-index:2;" class="wp_subtop"">
        <a href="#">白玉刚</a>
      </li>
      <li style="z-index:2;" class="wp_subtop">
        <a href="#">致密刚玉</a>
      </li>
      <li style="z-index:2;" class="wp_subtop">
        <a href="#">镁铝尖晶石</a>
        </li>
      <li style="z-index:2;" class="wp_subtop">
        <a href="#">α-氧化铝</a>
      </li>
      <li style="z-index:2;" class="wp_subtop">
        <a href="#">莫来石</a>
      </li>
      <li style="z-index:2;" class="wp_subtop">
        <a href="#">单晶刚玉</a>
      </li>
    </ul>
    <ul class="product-list">
      <li style="z-index:2;" v-for="(item,index) in productList" :key="index">
        <img :src="item.url" />
        <div class="name">
          {{item.title}}
        </div>
      </li>
    </ul>  
  </div>
</template>
  
<script>
  export default {
    name: "HomeProduct",
    data() {
      return {
        productList: [
          {
            url: 'https://proc58103-pic18.websiteonline.cn/upload/gayv.jpg',
            title: '陶瓷用低钠α氧化铝（CA)系列'
          },
          {
            url: 'https://proc58103-pic18.websiteonline.cn/upload/17.jpg',
            title: '陶瓷造粒粉'
          },
          {
            url: 'https://proc58103-pic18.websiteonline.cn/upload/18.jpg',
            title: '氧化铝陶瓷'
          },
          {
            url: 'https://proc58103-pic18.websiteonline.cn/upload/l6m6.jpg',
            title: '电熔白刚玉'
          },
          {
            url: 'https://proc58103-pic18.websiteonline.cn/upload/735e.jpg',
            title: '电熔致密刚玉'
          },
          {
            url: 'https://proc58103-pic18.websiteonline.cn/upload/64h9.jpg',
            title: '电熔铝镁尖晶石'
          },
          {
            url: 'https://proc58103-pic18.websiteonline.cn/upload/7ltk.jpg',
            title: '白刚玉磨料P砂'
          },
          {
            url: 'https://proc58103-pic18.websiteonline.cn/upload/c3y3.jpg',
            title: '微钠白刚玉'
          }
        ]
      };
    },
    methods: {
    }
  };
  </script>
  
<style lang="scss" scoped>
.product {
  width: 1200px;
  margin: 0 auto;
  ul {
    padding: 0;
    margin: 0;
  }
  .title {
    width: 100%;
    text-align: center;
    font-size: 25px;
    color: rgb(206, 9, 9);
    margin-top: 80px;
    font-weight: bold;
  }

  .sub-title {
    width: 100%;
    text-align: center;
    color: #5A5A5A;
    font-size: 16px;
    font-style: normal;
    font-weight: bold;
    margin-top: 20px;
    text-align: center;
    width: 100%;
  }

  .sub-title2 {
    width: 100%;
    text-align: center;
    color: rgb(13, 13, 13);
    font-size: 16px;
    font-style: normal;
    font-weight: bold;
    margin-top: 20px;
    text-align: center;
    width: 100%;
  }
  .navigation {
    position: relative;
    margin-top: 50px;
    margin-bottom: 50px;
    padding-left: 20px;
    background-image: url(https://static.websiteonline.cn/website/plugin/new_navigation/styles/hs12/colorstyle/black/h_13_swpS.jpg);
    background-repeat: repeat;
    background-position: top left;
    background-color: transparent;
    height: 53px;
    border-radius: 5px;
    .wp_subtop {
      padding-left: 5px;
      padding-right: 5px;
      text-align: center;
      height: 53px;
      line-height: 53px;
      position: relative;
      float: left;
      width: 144px;
      padding-bottom: 0px;
      background-image: none;
      background-color: transparent;
      background-repeat: no-repeat;
      background-position: right top;
    }
    li {
      margin: 0px;
      padding: 0px;
      border: thin none;
      list-style: none;
    }
    a {
      white-space: nowrap;
      font-style: normal;
      font-weight: normal;
      font-family: arial;
      font-size: 14px;
      display: block;
      padding: 0px;
      color: #ffffff;
      text-align: center;
      text-decoration: none;
      overflow: hidden;
    }
    a:hover {
      padding-left: 5px;
      padding-right: 5px;
      height: 53px;
      line-height: 53px;
      width: 144px;
      background-image: url(
https://static.websiteonline.cn/website/plugin/new_navigation/styles/hs12/colorstyle/black/h_14_bvXX.jpg);
      background-repeat: no-repeat;
      background-color: transparent;
      background-position:top center;
      z-index: -1;
    }
  }
  .product-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    gap: 20px;
    li {
      padding: 50px 15px;
      border: 1px solid rgb(238, 238, 238);
      list-style: none;
      box-sizing: border-box;
      img {
        position: relative;
        max-width: 250px;
        margin: 0px auto;
        max-height: 250px;
        display: inline;
      }
      .name {
        text-align: center;
        margin-top: 20px;
      }
    }
  }
}</style>
  